package csu.edu.flatprogram.service;

import csu.edu.flatprogram.common.CommonResponse;
import csu.edu.flatprogram.entity.Cart;
import csu.edu.flatprogram.vo.CartVO;


import java.math.BigDecimal;

public interface CartService {
    CommonResponse<CartVO> getCartItemByUserid(String userid);
    CommonResponse<CartVO> insertCartItem(Cart cart);
    CommonResponse<BigDecimal> updateQuantity(String userid, int quantity,String itemid);
    CommonResponse<Cart> deleteByUserid(String userid);
    CommonResponse<CartVO> deleteCartitemByUserid(String userid,String itemid);

}
